Comment by πŸ™ norayr

Re: "Why did Wirth's languages never see widespread adoption…"

In: s/pascal

on safety of c code: it is a generated c code. likewise writing in assembly is not safe but assembly generated from oberon or ada is safe. (:

another addition is this example: oberon arrays always have size. even if you expect in the function

when you get str, you know the size. we pass the size as an additional argument, it is visible in c code, but hidden in oberon.

oberon compiler which produces machine code would send an oberon string which is actually a struct with one field for size. well voc also keeps arrays as structs with one field for length.

πŸ™ norayr [mod]

2024-04-29 Β· 2 years ago

1 Later Comment

πŸ™ norayr [mod] Β· 2024-04-29 at 02:40:

TKurtBond, on package manager, my dream is to be able to

Original Post

πŸŒ’ s/pascal

πŸš€ eddos:

Why did Wirth's languages never see widespread adoption besides Pascal? Even Pascal is not used much nowadays outside of Delphi and Lazarus. I tried Pascal myself and I found it to be a nice language structurally, but I also found it to be missing basic features that relate to writing the language itself (example: not being able to insert newlines into strings like you would do in C via '\n'). I also don't like how much "modern" Pascal is centered around just 2 compilers: FreePascal and...

πŸ’¬ 43 comments Β· 1 like Β· 2024-04-25 Β· 2 years ago