Re: Pipe in the "return" statement

2011-07-25 Thread Ian Collins
On 07/26/11 12:00 AM, Archard Lias wrote: Hi, Still I dont get how I am supposed to understand the pipe and its task/ idea/influece on control flow, of: return | ?? It's simply a bitwise OR. -- Ian Collins -- http://mail.python.org/mailman/listinfo/python-list

Re: "Strong typing vs. strong testing"

2010-10-01 Thread Ian Collins
enabled. This is the scenario discussed in this thread, a long is passed to maximum without a compiler warning. Which will cause the test for the bit of code doing the call to fail. So it fails at run-time with a failed test, just as it would in a dynamic language. -- Ian Collins -- http://mail.python.org/mailman/listinfo/python-list

Re: "Strong typing vs. strong testing"

2010-09-30 Thread Ian Collins
On 10/ 1/10 10:27 AM, Seebs wrote: On 2010-09-30, Ian Collins wrote: Which is why agile practices such as TDD have an edge. If it compiles *and* passes all its tests, it must be right. So far as I know, that actually just means that the test suite is insufficient. :) Based on my

Re: "Strong typing vs. strong testing"

2010-09-30 Thread Ian Collins
on declarations makes thorough type checking extremely difficult if not impossible. -- Ian Collins -- http://mail.python.org/mailman/listinfo/python-list

Re: "Strong typing vs. strong testing"

2010-09-30 Thread Ian Collins
uch as TDD have an edge. If it compiles *and* passes all its tests, it must be right. -- Ian Collins -- http://mail.python.org/mailman/listinfo/python-list

Re: "Strong typing vs. strong testing"

2010-09-30 Thread Ian Collins
with stricter type checking: CC /tmp/u.c "/tmp/u.c", line 7: Error: Cannot use int(*)(int,int) to initialize int(*)(). "/tmp/u.c", line 8: Error: Too many arguments in call to "int(*)()". -- Ian Collins -- http://mail.python.org/mailman/listinfo/python-list

Re: "Strong typing vs. strong testing"

2010-09-30 Thread Ian Collins
se a language with *mandatory* infinite precision integers. Or using the new suffix return syntax in C++0x. Something like template [] maximum( T0 a, T1 b) { return a > b ? a : b; } Where the return type is deduced at compile time. -- Ian Collins -- http://mail.python.org/mailman/listinfo/python-list

Re: "Strong typing vs. strong testing"

2010-09-29 Thread Ian Collins
On 09/30/10 05:57 PM, RG wrote: I'm not saying one should not use compile-time tools, only that one should not rely on them. "Compiling without errors" is not -- and cannot ever be -- be a synonym for "bug-free." We is why wee all have run time tools called unit

Re: "Strong typing vs. strong testing"

2010-09-29 Thread Ian Collins
lint /tmp/u.c -m64 -errchk=all (7) warning: passing 64-bit integer arg, expecting 32-bit integer: maximum(arg 1) -- Ian Collins -- http://mail.python.org/mailman/listinfo/python-list

Re: Cpp + Python: static data dynamic initialization in *nix shared lib?

2010-07-09 Thread Ian Collins
T, contact me directly and we can work through it. I have had similar fun and games adding PHP modules! -- Ian Collins -- http://mail.python.org/mailman/listinfo/python-list