Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

    -- Comment syntax is that a big deal?
    - bit wise: LuaJIT?
    - Just like in Python and Javascript, what's the issue?
      Doubles do just fine as integers if you code so that 
      you always wind up with other integers.
    - OOP - This I agree is a community fragmentation issue.


One issue is that it's easy to end up with things that aren't round numbers by mistake (if you do any sort of division, for example, or are getting results from an external library, etc., and strategies for reducing errors that rely on the programmer not screwing up are generally doomed to failure.) That has several problems: floats are imprecise, you introduce the potential for additional runtime errors if you're doing something like indexing into an array, etc.

Also, Python has separate integer and floating-point operations:

    >>> type(1)
    <type 'int'>
    >>> type(1.0)
    <type 'float'>


The GP mentioned arbitrary precision integers, which Python has. I believe they're called Long, and integers that overflow are cast to Long (represented as 123L).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: