1. Type and value checking in Python!

https://youtu.be/sPiWg5jSoZI

new topic     » topic index » view message » categorize

2. Re: Type and value checking in Python!

Three hours?! Ain't nobody got time for that. Can I get the CliffsNotes version?

-Greg

new topic     » goto parent     » topic index » view message » categorize

3. Re: Type and value checking in Python!

Since we're on about Python, let me share Monday's XKCD comic with you.

xkcd: Python Environment

https://imgs.xkcd.com/comics/python_environment.png

Let's always aim to be better than this.

-Greg

new topic     » goto parent     » topic index » view message » categorize

4. Re: Type and value checking in Python!

ghaberek said...

Three hours?! Ain't nobody got time for that. Can I get the CliffsNotes version?

-Greg

You have more time when you give up TV. 😃 The short version would be several pages long but the type checking like in Euphoria is possible in Python although it is not a feature. You can implement Euphoria like tyoe checking using "meta programming".

Shawn

new topic     » goto parent     » topic index » view message » categorize

5. Re: Type and value checking in Python!

Is this the same thing?

Pyre: Fast Type Checking for Python

-Greg

new topic     » goto parent     » topic index » view message » categorize

6. Re: Type and value checking in Python!

Python has a lot going for it. Though I'd rather code in Euphoria. There's so much cumbersomeness(is that a word?) to Python that I really dread programming in it. I think Euphoria could be on the same level if not higher than Python if some tweaks were made here and there.

new topic     » goto parent     » topic index » view message » categorize

7. Re: Type and value checking in Python!

ghaberek said...

Is this the same thing?

Pyre: Fast Type Checking for Python

-Greg

No, this looks like it is another way of implementing static type checking. The Euphoria notion of type check would be better called "value check". The meta programming approach also allows this but at the cost of speed.

Whereas a static type may be less flexible, it is possible to do before running the program you're writing. Python meta programming cannot do this.

new topic     » goto parent     » topic index » view message » categorize

8. Re: Type and value checking in Python!

Icy_Viking said...

Python has a lot going for it. Though I'd rather code in Euphoria. There's so much cumbersomeness(is that a word?) to Python that I really dread programming in it. I think Euphoria could be on the same level if not higher than Python if some tweaks were made here and there.

What tweaks do you mean? Make a new post for that in a new thread if you do.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu