Re:GNU Pascal Compiler
by anta40 on Thursday April 27, 2023 @07:25AM
(#35726410)
One of Go's designer, Rob Griesemer, was a Phd student Niklaus Wirth. Hmm...
[ Parent
| on HN ]
Go's method syntax is taken from Oberon-2, just like unsafe package is pretty much the same purpose as SYSTEM.
Re:GNU Pascal Compiler
by AnimalMuppet on Thursday April 27, 2023 @08:31AM
(#35727050)
And, if I understand correctly, Go stole its object file format (or at least large-scale design) from Modula-2.
That I doubt it, given Modula-2 package design, how symbols are made public and type system differences.
If you mean packages as modules, other languages predate Modula-2 in that matter.
Re:GNU Pascal Compiler
by AnimalMuppet on Thursday April 27, 2023 @08:59AM
(#35727376)
No, I mean the object file defines the public symbols at the start of the file. Go very deliberately stole that feature. Rob Pike said that using that idea let Go do something faster when compiling, though I don't remember the details.