News for hackers. Stuff that matters.
Re:Seemingly Impossible Swift Programs by ken on Monday December 10, 2018 @11:54AM (#18649201)
> Once they understand the specific, then its time to make it abstract: take what they now understand and generalize it - say from people, to predicates in general.

What does "!Bob" mean, though? Are we negating the person, or their name? Neither one makes sense to me.

Maybe I'm too far gone down the computer science rabbit hole, but this is far more confusing to me than "!a".

Re:Seemingly Impossible Swift Programs by all2 on Monday December 10, 2018 @12:05PM (#18649305)
> Are we negating the person, or their name? Neither one makes sense to me.

This is a fair statement. I think a treatment of predicates would be necessary before getting to using names as predicates. "When we say 'Bob', we mean 'Bob has enough money for a bus fare'."

Then, if we want to say "Bob doesn't have enough money for a bus fare" we can express it with !Bob (which means, in this case 'not Bob').

I agree that using names can be confusing. I think meaning needs to be addressed first.

Re:Seemingly Impossible Swift Programs by Izkata on Monday December 10, 2018 @01:54PM (#18650227)
I don't think you really need to take a detour into discussing meaning if you used meaningful names for the construct, though. For example, since here we're talking about a boolean expression, name the variables like you would boooleans - such as "isBob".