First, the basic nature of dynamic typing hasn't changed.
首先,动态类型化的基本性质没有改变。
The dynamic typing still hinders the context-sensitivity in Ruby.
动态类型仍然会妨碍 Ruby 中的上下文敏感性。
Static versus dynamic typing depends on when a typing model is enforced.
静态类型还是动态类型,这取决于何时实施类型模型。
Ruby gives you an error at run time because Ruby supports dynamic typing.
而Ruby则是在运行时给出错误消息,因为Ruby支持动态类型。
At another level, dynamic typing saves effort in terms of raw lines of code.
动态类型在原始代码行方面也可以节省精力。
The flexibility that dynamic typing permits is more important than you might think.
动态类型的灵活性比您想像的更重要。
With Groovy and its support for dynamic typing, there are fewer files to manage, too.
Groovy及其对动态类型的支持减少了要管理的文件。
If you are accustomed to a strongly typed language, dynamic typing seems like a step toward anarchy.
如果您已经习惯了强类型语言,那么动态类型看起来可能会导致混乱。
UI development often demands better productivity and high flexibility, so dynamic typing is often preferred.
UI开发常常需要更高的效率和灵活性,所以更适合采用动态类型。
So based on the dynamic typing and higher-order functions, you can introduce arbitrary behavior to your classes at any time.
所以,基于动态类型和高阶函数,您可以在任何时候向类中引入任意的行为。
Dynamic typing allows all sorts of advanced meta-programming tricks that are difficult or impossible in a strongly typed language.
动态类型支持所有高级的元编程技巧,这在强类型语言中是很难实现的,甚至不可能。
Commenting on a recent debate on Static vs. dynamic Typing, Palermo noted that dynamic programming is hard when it comes to use libraries because.
静态vs .动态类型的讨论的评论中,Palermo提出当直接使用外部函数库的时候,动态编程就非常困难,原因是。
In cases where dynamic typing is more convenient, the dynamic type can be used, enabling arbitrary access to properties and methods on dynamic variables.
有些情况下,动态类型更方便,我们可以使用Dynamic类型,从而可以对Dynamic变量的属性和方法进行任意地访问。
XPath expressions use dynamic typing (the type of an expression or of a variable is not necessarily known until the expression or variable is evaluated).
XPath表达式使用动态定类型(在对表达式或变量求值之前,不必知道表达式或变量的类型)。
An easy way to visualize how the dynamic typing works is to imagine a single base class called PyObject from which all other object types in Python inherit.
一种直观演示动态类型化工作方式的简单方法是,设想单个名为pyobject的基类,让Python中的所有其他对象类型都继承它。
More-dynamic typing is important at endpoints because those endpoints form a published integration API between systems that usually evolve at different paces.
更动态的类型控制在端点处是很重要的,因为这些端点会在以不同速度演变的系统之间形成一个已发布的集成api。
Of the three axes, static versus dynamic typing tends to have the most impact on a language's character, so I'll focus now on these two strategies' respective strengths.
在这三个角度中,静态类型与动态类型对于语言的特征有最大的影响,因此接下来我将重点解释这两种策略各自的优点。
I'll start with a general description of the decisions any language designer must consider within a typing model, focusing on the controversial decision of static versus dynamic typing.
我首先简要介绍任何语言设计者在类型模型中必须考虑的一些决策,着重介绍静态类型和动态类型的一些不同的决策。
Dynamic typing is easier for the novice programmer to get to grips with, because it means you can just use your variables as you want to without worrying too much about their types.
动态类型对于菜鸟程序员来说更易处理,因为这意味着你可以随需使用你的变量而不需要在它们的类型上担心太多。
Pythons elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms.
Python优雅的语法,动态类型,以及它天然的解释能力,使其成为了大多数平台上应用于各领域理想的脚本语言以及开发环境。
It also defines a Struct class for defining arbitrary data aggregations, and the special class any which can be used to represent any built-in or derived type and thus is the basis of dynamic typing.
它还定义了一个struct类,用来定义任意的数据聚合,此外,还定义了特殊的类any,它可以用来表示任何内置或导出类型,因而它也就成了动态类型化(dynamic typing)的基础。
Initially, it may feel odd to add even more typing information to a dynamic language, after all.
毕竟,开始的时候可能觉得在一个动态语言中加入更多类型信息是多余的。
Weak typing and dynamic query building.
弱类型和动态查询构建。
On the face of it, Python — with its extremely dynamic (albeit strict) typing — might seem like a strange choice for implementing what is, essentially, an elaborate type system.
从表面看,Python—需要极其动态(虽然很严格)的类型确定—可能象实现什么在本质上是精致的类型系统的一个奇怪选择。
You could do this by typing grails generate-views Hotel and deleting the fields in the create.gsp and edit.gsp files, but here's a way to be a bit more dynamic with your scaffolded views.
为此,可以输入grails generate -views Hotel并删除create. gsp和edit . gsp文件中的字段,但有一种方法使scaffolded视图更具动态性。
You could do this by typing grails generate-views Hotel and deleting the fields in the create.gsp and edit.gsp files, but here's a way to be a bit more dynamic with your scaffolded views.
为此,可以输入grails generate -views Hotel并删除create. gsp和edit . gsp文件中的字段,但有一种方法使scaffolded视图更具动态性。
应用推荐