CommandHelper Builds

Sponsored by
MCProHosting

25% OFF! Code: enginehub

Be aware that this branch (booleanish) is not the main branch (master)!

Branches other than the main one may be experimental. In addition, you should be using stable releases rather than these test builds.

Go to main branch View stable downloads
View last successful build
Branch#StatusChangesFinished
booleanish#3551Tests passed: 641, ignored: 8
  • Add a Booleanish interface. (#514) Add a Booleanish interface. This allows objects to specifically declare that, while not booleans themselves (except CBoolean), they do have a way to convert to a truth value. This distinction allows functions like if and for to formally declare that they accept a Booleanish value, but others, will only accept an actual boolean value. As it stands today, everything accepts booleanish values, and that is unfortunate, but that will be addressed when strong typing is added, so that it will reduce most of the errors that would be runtime. There are a few other refactorings in this PR, mainly the change from Static.getBoolean to ArgumentValidation.getBoolean. Also added an Iterator class, which functions as the old ArrayAccessIterator, but in a slightly more generic way, working with Iterable objects instead. Iterable is just an amalgam of ArrayAccess and Sizeable, and ArrayAccess no longer extends Sizeable, which now allows for things that don't inherently make sense to be iterable still have array access, without Sizeable. (a00162d9 by ladycailin)
  • ArrayAccess is not Sizeable (50fbeb72 by ladycailin)
9 months ago
booleanish#3550Tests passed: 641, ignored: 8
  • Documentation updates (d6dedaec by ladycailin)
9 months ago
booleanish#3547Tests passed: 641, ignored: 8
  • Fix missing interface declaration (a0b8b5c6 by ladycailin)
9 months ago
booleanish#3546Tests passed: 641, ignored: 8
  • Add a Booleanish interface. This allows objects to specifically declare that, while not booleans themselves (except CBoolean), they do have a way to convert to a truth value. This distinction allows functions like if and for to formally declare that they accept a Booleanish value, but others, will only accept an actual boolean value. As it stands today, everything accepts booleanish values, and that is unfortunate, but that will be addressed when strong typing is added, so that it will reduce most of the errors that would be runtime. (c4ae56e3 by ladycailin)
9 months ago
  • «
  • 1
  • »