Erlang的隐藏功能 [英] Hidden Features of Erlang

查看:137
本文介绍了Erlang的隐藏功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




  • C#的隐藏功能

  • Java的隐藏功能

  • 隐藏的ASP.NET功能

  • 隐藏的Python功能

  • HTML的隐藏功能

  • 和其他隐藏的功能问题



Erlang的每个Erlang开发人员应该注意哪些隐藏的功能



请问每个答案有一个隐藏的功能。

解决方案

外壳中的魔术命令。完整列表在手册中,但我最常用的是: f() - 忘记所有变量

  • f(X) - 忘记X
  • v(42) - 第42行召回结果

  • v(-1) - 上一行的召回结果

  • e(-1) - 在前一行重新执行表达式

  • rr(foo) - 从模块foo读取记录定义

  • rr(* / *) - 从每个子目录中的每个模块读取记录定义

  • rp(表达式) - 打印具有记录格式的完整表达式


  • In the spirit of:

    • Hidden Features of C#
    • Hidden Features of Java
    • Hidden Features of ASP.NET
    • Hidden Features of Python
    • Hidden Features of HTML
    • and other Hidden Features questions

    What are the hidden features of Erlang that every Erlang developer should be aware of?

    One hidden feature per answer, please.

    解决方案

    The magic commands in the shell. The full list is in the manual, but the ones I use most are:

    • f() - forget all variables
    • f(X) - forget X
    • v(42) - recall result from line 42
    • v(-1) - recall result from previous line
    • e(-1) - reexecute expression on previous line
    • rr(foo) - read record definitions from module foo
    • rr("*/*") - read record definitions from every module in every subdirectory
    • rp(expression) - print full expression with record formating

    这篇关于Erlang的隐藏功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆