← Back to context

Comment by dlachausse

1 month ago

I think unfortunately what holds Lazarus back is the Pascal programming language. Although it is a very capable language that can hold its own against other languages, it suffers from a reputation of being obsolete.

It’s a pity that the C family of languages won out over Wirth’s languages. Pascal’s superior string handling alone would have saved us from countless security flaws.

Can someone recreate it in Go?

  • Go is basically Pascal with curly braces anyway. Wonder if a Pascal to Go transpiler could work here...

    • Delphi/FP Component Pascal has a well-developed object model that is more expressive than Go in general (inheritance, virtual methods including virtual static methods etc), so it's not a 1:1 mapping. But all of these still have a straightforward mapping to Go, even if the output wouldn't be idiomatic, so it should be possible to transpile.