logoalt Hacker News

subjectsigmatoday at 4:19 AM1 replyview on HN

Re: the comma-at-end-of-line thing: I would sometimes write Prolog like so to avoid that issue:

    goal :-
        true
        , subgoal(A, B)
        , subgoal(B, C)
        .        
This is definitely not standard and I don't know if the WAM optimizes out the gratuitous choice point, but it certainly makes the code easier to work with.

Replies

cyberpunktoday at 5:34 AM

I actually like , ; . in erlang. Maybe I’m an alien.

show 1 reply