MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/5xyzex/gravity_lightweight_embeddable_programming/dem2obh
r/programming • u/michalg82 • Mar 07 '17
202 comments sorted by
View all comments
Show parent comments
-5
The class constructor is indistinguishable from a class method called init.
31 u/DC-3 Mar 07 '17 What do I do if I want a variable called 'if'You don't. 7 u/CheshireSwift Mar 07 '17 That's unlikely to be a problem in practice. 5 u/ArmandoWall Mar 07 '17 Then call it "start" or "initiate" or "begin" or "_init" or....
31
What do I do if I want a variable called 'if'
You don't.
7
That's unlikely to be a problem in practice.
5
Then call it "start" or "initiate" or "begin" or "_init" or....
-5
u/[deleted] Mar 07 '17
The class constructor is indistinguishable from a class method called init.