Thread: [REV-AG] [KT] Simple ItemOnItem Handler

Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11  
    Brett the Don's Avatar
    Join Date
    Dec 2009
    Thanks given
    Thanks received
    Rep Power
    Making me want to learn/switch to Kotlin.

    OT looking good mate! Keep it up.

    All of humanity's problems stem from man's
    inability to sit quietly in a room by himself
    Reply With Quote  

  2. #12  

    nbness2's Avatar
    Join Date
    Aug 2011
    Thanks given
    Thanks received
    Rep Power
    Quote Originally Posted by Brett the Don View Post
    Making me want to learn/switch to Kotlin.

    OT looking good mate! Keep it up.
    Do it, you won't regret it! The code is much less noisy overall!
    • Null checks are not necessary because of the compiler's null safety, but if you really want to use a null you can just put a ? after the type and boom it's nullable.
    • No more typechecking THEN explicitly typecasting every time you want to use the thing, smartcasting is a thing and it's beautiful.
    • You can suggest inlining a function OR A CLASS (!!)
    • Type inference (java has this now)
    • Data classes (auto generated equals, toString and hashCode)
    • Operator overloading
    • Extension functions. And by extension (lol gotem) extension lambdas!
    • Sealed classes make typechecking much less ambiguous as you can only define subclasses of the sealed class in the same package as the sealed classs. That means nobody using the code can extend it for possibly nefarious purposes. Think of them as enums on steroids.
    • when statement\expression. Really good switch alternative, and must be exhaustive when used as an expression.

    Most of those are fancy syntax parsing, but damn this fancy syntax parsing has made my life so much easier. I can use all my java libraries flawlessly and its 10 times easier to write code because half of it isnt unnecessary stuff kept for the sake of back compat.

    Heres a gist that shows some of the features and how the can be used: [Only registered and activated users can see links. ]
    Discord: nbness2#5894
    Python Framework (???): [Only registered and activated users can see links. ]!
    NBX: [Only registered and activated users can see links. ]!
    DropTable DSL: [Only registered and activated users can see links. ]!
    Make your Inventory easier and safer to work with. Introducing Container: [Only registered and activated users can see links. ]
    Reply With Quote  

Page 2 of 2 FirstFirst 12

Thread Information
Users Browsing this Thread

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

Similar Threads

  1. [PI]Simple Teleport Handler[PI]
    By jummppy1 in forum Snippets
    Replies: 19
    Last Post: 09-02-2014, 07:48 PM
  2. Simple ItemOnItem handler.
    By Own4g3 in forum Snippets
    Replies: 15
    Last Post: 10-03-2012, 05:27 PM
  3. ItemOnItem handler
    By Laxika in forum Tutorials
    Replies: 21
    Last Post: 10-11-2008, 11:17 PM
  4. A simple "Command Handler"
    By samuraiblood2 in forum Tutorials
    Replies: 7
    Last Post: 11-24-2007, 11:15 AM
  5. Sweet and simple way to make a handler
    By Harvey in forum Tutorials
    Replies: 24
    Last Post: 10-05-2007, 05:38 PM
Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts