(Fwd) Re: Small poll
jonathan@REDACTED
jonathan@REDACTED
Wed Dec 10 22:41:05 CET 2003
> I was wondering whether the Erlang user community would care
> to comment on the following:
>
> In a function like:
>
> test(A) ->
> a + 42.
>
> which is either crap (arguably) or a typo (A vs a), how many
> Erlang users:
>
> 1. Are content with the current situation where the compiler
> happily compiles this program
> 2. Would like to see a warning, but a .beam file generated
> nevetheless
> 3. Would prefer if the compiler in R10 refused to compile it
I would have thought that the majority of work for either 2 or 3 is
detecting the condition, so once you've implemented either, the other
is trivial. So isn't controlling the response generated via a
compiler flag, probably with option 3 the default, the most workable
solution?
- Jonathan Coupe
More information about the erlang-questions
mailing list