(Apr-02-2017, 04:28 PM)Kebap Wrote:(Apr-02-2017, 03:13 AM)Skaperen Wrote: if i had written my own language there are some things i would have done differently.
can you guess what one of them is?
Let me guess, a string containing the word "false" would be evaluated to the boolean value False?
How about adding strings containing the words "two" and "three"? Will the result be "five" then?
i want a funny button in addition to a like button.
but yeah, i would have valid code expression of any value of the type/class return that value. so if the language accept "False" but not "false" then the function of that type will, as well. but i don't really see a problem with a special set of functions to do that. this could probably be done with the help of exec(). i might try that.
one feature my language would have is a way to add/extend/replace methods of standard type classes like bool, int, float, str, etc.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.