• LZ79LRU (unregistered)

    So many arguments. I thought this place was not supposed to be like reddit.

  • Klimax (unregistered)

    For frist time I am secnod in commenting? Never happened… :D Anyway, TRWTF is correct outcome...

  • Officer Johnny Holzkopf (unregistered)

    I'd like to have an argument, please.

  • Nick (unregistered)

    Okay, so if notArg8 is true, we pass false to the context. If it's any other value, we don't past arg8 at all. I do not understand what I'm looking at here. If the goal is to ensure that arg8 is either true or not set, there are clearer ways to express that idea.

    Yep, there must be clearer ways to express this… since the actual goal seems to be to “ensure that arg8 is either false or not set”

  • (nodebb)

    That isn't notArg8, that's contradictionArg8

  • Tim R (unregistered) in reply to Nick

    This is where you need typescript - having something that is either missing or false is a doddle:

    registerFooWrapper: function(..., notArg8?: false) {...}

Leave a comment on “Adding to the Argument”

Log In or post as a guest

Replying to comment #:

« Return to Article