Slashdot Mirror


User: loganpd

loganpd's activity in the archive.

Stories
0
Comments
2
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 2

  1. Symbols on C# From a Java Developer's Perspective · · Score: 1

    Of course the real problem is these languages do not have symbols as a data type. In Smalltalk... #north #south #east #west In Lisp... 'north 'south 'east 'west

  2. Why even use ints? Or new classes? on C# From a Java Developer's Perspective · · Score: 1

    You don't even need a separate class to be instantiated. Just use Strings.

    public final static Direction NORTH = "NORTH".intern();
    public final static Direction SOUTH = "SOUTH".intern();
    public final static Direction EAST = "EAST".intern();
    public final static Direction WEST = "WEST".intern();