|
gen_server:cast(stop, Pid).
Anybody else? -------------------------------------------------------------------------- - for hire: mac osx device driver ninja, kernel extensions and usb drivers ---------------------+------------+--------------------------------------- http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont ---------------------+------------+--------------------------------------- _______________________________________________ erlang-questions mailing list [hidden email] http://erlang.org/mailman/listinfo/erlang-questions |
|
Writing a new module -module(http). that particular one wont screw up on the current otp release, but its fairly easy to write one that will if you dont use your own prefix, and it causes the hardest to diagnose errors around.
On 1 August 2011 17:36, Joel Reymont <[hidden email]> wrote: gen_server:cast(stop, Pid). _______________________________________________ erlang-questions mailing list [hidden email] http://erlang.org/mailman/listinfo/erlang-questions |
|
list_to_atom on increasing sequence numbers will make for a good crash...
Kenny
On Mon, Aug 1, 2011 at 8:11 PM, Dale Harvey <[hidden email]> wrote:
_______________________________________________ erlang-questions mailing list [hidden email] http://erlang.org/mailman/listinfo/erlang-questions |
|
Forgetting a comma between strings in a list, like ["foo" "bar"]
Made for a _very_ insidious and hard to find bug. Mihai On Aug 1, 2011, at 9:16 PM, Kenny Stone wrote: list_to_atom on increasing sequence numbers will make for a good crash... _______________________________________________ erlang-questions mailing list [hidden email] http://erlang.org/mailman/listinfo/erlang-questions |
|
In reply to this post by Joel Reymont
lists:seq(1:100).
Erlang answers with "illegal expression" -> an afternoon of code review :( And I STILL continue to write this!!! |
|
On 10/08/2011, at 2:16 AM, Vincenzo Maggio wrote: > lists:seq(1:100). > > Erlang answers with "illegal expression" -> an afternoon of code review :( > And I STILL continue to write this!!! Here's a one-line AWK script you can use to check for this. #!/bin/awk -f /[^a-zA-Z0-9_][0-9]+ *:/ { print FILENAME ":" FNR ": integer-colon error" } You can probably configure your editor to run this on a keystroke. Of course 1:100 is perfectly legal S, so it's not _that_ silly a mistake. _______________________________________________ erlang-questions mailing list [hidden email] http://erlang.org/mailman/listinfo/erlang-questions |
|
If we only could get a public repository for Wrangler rules[1] we could have these checks actually integrated with proper Erlang tools
[1] See refactoring videos at http://www.cs.kent.ac.uk/projects/wrangler/Home.html and DIY refactoring at http://www.erlang-factory.com/conference/London2011/speakers/SimonThompson
=================================== Dmitrii Dimandt [hidden email] ------------------------------------------------------------ Erlang in Russian http://erlanger.ru/ TurkeyTPS ------------------------------------------------------------ LinkedIn: http://www.linkedin.com/in/dmitriid GitHub: https://github.com/dmitriid _______________________________________________ erlang-questions mailing list [hidden email] http://erlang.org/mailman/listinfo/erlang-questions |
|
On 08/10/2011 08:56 AM, Dmitrii Dimandt wrote:
> If we only could get a public repository for Wrangler rules[1] we could > have these checks actually integrated with proper Erlang tools Wrangler can now be found here: https://github.com/RefactoringTools/wrangler It's now also much easier to compile and set up, and plays well with a modern Distel (which is found at https://github.com/massemanet/distel, if you want to get it separately, but Wrangler includes a recent version). /Richard _______________________________________________ erlang-questions mailing list [hidden email] http://erlang.org/mailman/listinfo/erlang-questions |
|
Richard - thanks for nudging us to doing this. The Wrangler team plans a release in the next few weeks with stable versions of the scripting, and a repository for scripts.
Simon and Huiqing On 10 Aug 2011, at 12:20, Richard Carlsson wrote: > On 08/10/2011 08:56 AM, Dmitrii Dimandt wrote: >> If we only could get a public repository for Wrangler rules[1] we could >> have these checks actually integrated with proper Erlang tools > > Wrangler can now be found here: > https://github.com/RefactoringTools/wrangler > > It's now also much easier to compile and set up, and plays well with a modern Distel (which is found at https://github.com/massemanet/distel, if you want to get it separately, but Wrangler includes a recent version). > > /Richard > _______________________________________________ > erlang-questions mailing list > [hidden email] > http://erlang.org/mailman/listinfo/erlang-questions Simon Thompson | Professor of Logic and Computation School of Computing | University of Kent | Canterbury, CT2 7NF, UK [hidden email] | M +44 7986 085754 | W www.cs.kent.ac.uk/~sjt _______________________________________________ erlang-questions mailing list [hidden email] http://erlang.org/mailman/listinfo/erlang-questions |
| Powered by Nabble | Edit this page |
