Python Forum
if i had written my own language
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
if i had written my own language
#7
(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.
Reply


Messages In This Thread
if i had written my own language - by Skaperen - Apr-02-2017, 03:13 AM
RE: if i had written my own language - by metulburr - Apr-02-2017, 01:31 PM
RE: if i had written my own language - by wavic - Apr-02-2017, 01:49 PM
RE: if i had written my own language - by zivoni - Apr-02-2017, 02:41 PM
RE: if i had written my own language - by wavic - Apr-03-2017, 04:27 AM
RE: if i had written my own language - by Kebap - Apr-02-2017, 04:28 PM
RE: if i had written my own language - by Skaperen - Apr-03-2017, 01:55 AM
RE: if i had written my own language - by zivoni - Apr-03-2017, 07:40 AM
RE: if i had written my own language - by micseydel - Apr-03-2017, 03:36 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is python an interpreted language or a compiled language? GouravDas 1 2,138 Jun-23-2020, 10:38 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020