Thread: [Kotlin] Random Permutation

Page 6 of 6 FirstFirst ... 456
Results 51 to 52 of 52
  1. #51  
    Registered Member
    Velocity's Avatar
    Join Date
    Jan 2009
    Age
    25
    Posts
    2,029
    Thanks given
    1,013
    Thanks received
    2,373
    Rep Power
    4112
    Quote Originally Posted by Scu11 View Post
    exactly. previously it would have ALWAYS been something you only found at runtime in the Java world, now it's something you can mostly find at compile-time and occassionally find at runtime in kotlin... surely as programmers we generally want to find these problems sooner rather than later, so moving whatever we can to compile-time problems is a good thing?
    agree wholeheartedly. but why is extra compile time bytecode needed? i don't think that a compile time check should add anything to the runtime. that's like, the whole point?
    xxxxxxx
    Reply With Quote  
     

  2. #52  




    Scu11's Avatar
    Join Date
    Aug 2007
    Age
    27
    Posts
    16,206
    Thanks given
    7,190
    Thanks received
    12,171
    Rep Power
    5000
    Quote Originally Posted by Velocity View Post
    agree wholeheartedly. but why is extra compile time bytecode needed?
    because of java interop lol?

    the whole point of the additional null checks at the start of your compiled kotlin function is if someone from the java world is passing a null to your function, the function will immediately blow up and say "hey, no nulls here pal".

    if your function doesn't have all of the null preconditions then you might get halfway through your function before hitting an NPE, and leave your program in a really bad state (because it got halfway through doing something).

    [Only registered and activated users can see links. ]



    Reply With Quote  
     

  3. Thankful user:


Page 6 of 6 FirstFirst ... 456

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Some Random Events
    By Eleclion in forum Tutorials
    Replies: 4
    Last Post: 05-15-2007, 11:38 PM
  2. Guardian Random Events
    By Eleclion in forum Tutorials
    Replies: 3
    Last Post: 05-12-2007, 08:21 PM
  3. Some Random S**t
    By Darklordants Evil Bro in forum Showcase
    Replies: 2
    Last Post: 04-13-2007, 09:42 PM
  4. A few Random Renders...
    By oblak10 in forum General
    Replies: 2
    Last Post: 04-02-2007, 04:31 AM
  5. my latest sigs :D and random GFX
    By Oblak Lol in forum Showcase
    Replies: 10
    Last Post: 03-31-2007, 10:41 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •