- Perl 6 Deep Dive
- Andrew Shitov
- 175字
- 2021-07-03 00:05:46
Comments
In Chapter 1, What is Perl 6?, we've seen two ways of writing programs—by passing it in the -e command-line option or by saving it in a file. Of course, all big programs are stored in files. In this section, we will see how Perl 6 helps the programmer to organize the code better by adding comments.
Comments are parts of the source code, which are ignored by the compiler. Comments are intended to give additional information about the program itself. Good examples of comments are explanations of the algorithms used, or the purpose of variables, or a description of the input arguments of a function.
Perl 6 offers two ways of saving additional human-oriented information in the source code by using comments and the so-called Pod. First, we will examine the comments.
Comments are fragments of source code that a compiler does not consider as direct instructions for execution. In Perl 6, there are three ways of leaving comments:
- One-line comments,
- Multiline comments,
- Embedded comments.
Let's examine them in detail.
- The Complete Rust Programming Reference Guide
- Mastering RabbitMQ
- Pandas Cookbook
- SpringMVC+MyBatis快速開發與項目實戰
- Offer來了:Java面試核心知識點精講(原理篇)
- 匯編語言程序設計(第2版)
- Production Ready OpenStack:Recipes for Successful Environments
- Getting Started with SQL Server 2012 Cube Development
- Nexus規模化Scrum框架
- Python編程:從入門到實踐
- Mastering Linux Network Administration
- 新一代SDN:VMware NSX 網絡原理與實踐
- 移動增值應用開發技術導論
- Delphi開發典型模塊大全(修訂版)
- 算法圖解