Y
Hacker News
new
|
ask
|
show
|
jobs
by
IshKebab
2064 days ago
Julia uses `end` because it is derived from MATLAB which also uses `end`, it's not to save ASCII characters.
2 comments
cdsousa
2064 days ago
AFAIK it is the opposite of what you have said. And although Julia has a lot of inspiration of Matlab syntax, it is absolutely not derived from it.
https://julialang.org/blog/2012/02/why-we-created-julia/
link
StefanKarpinski
2063 days ago
There are many fine languages that have used `end` to delimit blocks, including: Pascal — an elegant, classic language (and my first, personally); Ruby — another gem (get it). And yes, also Matlab, which is hardly unique in this respect.
link
IshKebab
2063 days ago
Right, but Julia is not derived from Ruby or Pascal.
link
StefanKarpinski
2062 days ago
Julia isn't derived from Matlab either and was influenced as much by Ruby as by Matlab.
link
IshKebab
2063 days ago
> derive: base a concept on an extension or modification of (another concept).
Obviously I didn't mean the implementation was based on MATLAB because that would be impossible.
link
DennisP
2064 days ago
Then why does MATLAB do it?
link