arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1311.3130cs.PLcs.HC
收藏

缩进在编程中的影响

Impact of Indentation in Programming

Niranjan Kumar Parvatham

摘要:

在计算机程序设计语言中,缩进格式程序源代码以提高可读性。程序设计语言使用缩进来定义程序结构。程序员使用缩进来向人类读者理解程序的结构。特别是,缩进是表示控制流构造(如选择语句或循环)与包含在它们内部和外部的代码之间的关系的更好方法。本文介绍了编程中使用的不同缩进样式,并描述了每种缩进样式的上下文。它还描述了用于各种编程构造的缩进样式以及特定编程构造的最佳实践。帮助初学者了解编程中常用的各种缩进样式,并选择合适的缩进样式。

英文摘要:

In computer programming languages, indentation formats program source code to improve readability. Programming languages make use of indentation to define program structure .Programmers use indentation to understand the structure of their programs to human readers. Especially, indentation is the better way to represent the relationship between control flow constructs such as selection statements or loops and code contained within and outside them. This paper describes about different indentation styles used in Programming and also describes context of each indentation style. It also describes indentation styles used for various programming constructs and the best practice for a particular programming construct. This paper helps the beginners to understand various indentation styles used in programming and also to choose suitable indentation style.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑