« first day (115 days earlier)    last day (14 days later) » 

user1804599
10:30 AM
@FredOverflow Eiffel does private in an interesting way.
 
user1804599
You can specify which classes can access a certain member, much like friend in C++ but per-member.
 
user1804599
So if you want private you simply restrict access to bottom!
 
user1804599
Have you done any more tree implementations?
 
Trees become boring very quickly once you've successfully implented them.
Maybe I'll to RB-trees for completeness.
But I'm not very motivated.
 
user1804599
Abstract syntax trees aren't too boring.
 
10:33 AM
Those usually don't have to be balanced ;)
 
user1804599
Imagine a program resulting in an unbalanced AST be considered invalid.
 
I was (implicitly) talking about search trees only.
So the number of functions you write must be a power of 2? :)
And every function must internally use the same levels of nesting? :)
You should invent that language. Call it Bala. (Balanced Language)
Or how about this: the meaning of the program is determined by the layout of the tree only; it doesn't matter what you actually write.
 
user1804599
Does assembly have an abstract syntax list?
 
user1804599
Imagine an abstract syntax cyclic graph.
 
10:50 AM
@рытфолд It could represent infinite programs in a finite amount of memory!
 
in some sense, languages already do this — there are recursive functions
but this must be a different kind of edge in the graph
 
user1804599
@FredOverflow should I make classes final by default?
 
user1804599
Methods are final by default, might as well make classes final by default for consistency.
 
@рытфолд yes
Everything should be as restricted by default as possible.
 
user1804599
Except access, it should be public by default.
 
11:03 AM
Why?
 
user1804599
Because it's what you want in almost every case.
 
Why not have two keywords, one for public methods, one for private methods?
 
user1804599
Way too verbose.
 
user1804599
Maybe there won't be private at all.
 
user1804599
Just use underscores instead.
 
11:06 AM
def foo(...)
helper bar(...)
 
user1804599
lol
 
user1804599
helper sub and helper class
 
Scala got rid of the final keyword for variables by using val and var. Why not do the same thing for the private keyword? :)
 
user1804599
Because private is needed much less than final.
 
user1804599
Also I have let and let mutable. val and var are too much alike.
 
user1804599
11:09 AM
2.7 is a syntax error. You have to explicitly add the type.
 
user1804599
Such as 2.7f, 2.7d or 2.7r.
 
11:23 AM
@рытфолд Are you worried about Chinese programmers? ;)
 
user1804599
lol :P
 
@рытфолд I actually like that!
 

« first day (115 days earlier)    last day (14 days later) »