Julia v1.5.4 Documentationprimary purposes: to take advantage of Julia's powerful multiple-dispatch mechanism, to improve human readability, and to catch programmer errors. Describing Julia in the lingo of type systems, it is: expanded to interpolate the value of the argument into the final expression: julia> @sayhello("human") Hello, human We can view the quoted return expression using the function macroexpand (important note: macros): julia> ex = macroexpand(Main, :(@sayhello("human")) ) :(Main.println("Hello, ", "human")) julia> typeof(ex) Expr We can see that the "human" literal has been interpolated into the expression0 码力 | 1337 页 | 4.41 MB | 1 年前3
Julia v1.6.6 Documentationprimary purposes: to take advantage of Julia's powerful multiple-dispatch mechanism, to improve human readability, and to catch programmer errors. Describing Julia in the lingo of type systems, it is: expanded to interpolate the value of the argument into the final expression: julia> @sayhello("human") Hello, human We can view the quoted return expression using the function macroexpand (important note: macros): julia> ex = macroexpand(Main, :(@sayhello("human")) ) :(Main.println("Hello, ", "human")) julia> typeof(ex) Expr We can see that the "human" literal has been interpolated into the expression0 码力 | 1324 页 | 4.54 MB | 1 年前3
Julia 1.6.5 Documentationprimary purposes: to take advantage of Julia's powerful multiple-dispatch mechanism, to improve human readability, and to catch programmer errors. Describing Julia in the lingo of type systems, it is: expanded to interpolate the value of the argument into the final expression: julia> @sayhello("human") Hello, human We can view the quoted return expression using the function macroexpand (important note: macros): julia> ex = macroexpand(Main, :(@sayhello("human")) ) :(Main.println("Hello, ", "human")) julia> typeof(ex) Expr We can see that the "human" literal has been interpolated into the expression0 码力 | 1325 页 | 4.54 MB | 1 年前3
Julia 1.6.7 Documentationprimary purposes: to take advantage of Julia's powerful multiple-dispatch mechanism, to improve human readability, and to catch programmer errors. Describing Julia in the lingo of type systems, it is: expanded to interpolate the value of the argument into the final expression: julia> @sayhello("human") Hello, human We can view the quoted return expression using the function macroexpand (important note: macros): julia> ex = macroexpand(Main, :(@sayhello("human")) ) :(Main.println("Hello, ", "human")) julia> typeof(ex) Expr We can see that the "human" literal has been interpolated into the expression0 码力 | 1324 页 | 4.54 MB | 1 年前3
Julia 1.5.3 Documentationprimary purposes: to take advantage of Julia's powerful multiple-dispatch mechanism, to improve human readability, and to catch programmer errors. Describing Julia in the lingo of type systems, it is: expanded to interpolate the value of the argument into the final expression: julia> @sayhello("human") Hello, human We can view the quoted return expression using the function macroexpand (important note: macros): julia> ex = macroexpand(Main, :(@sayhello("human")) ) :(Main.println("Hello, ", "human")) julia> typeof(ex) Expr We can see that the "human" literal has been interpolated into the expression0 码力 | 1335 页 | 4.41 MB | 1 年前3
Julia 1.6.1 Documentationprimary purposes: to take advantage of Julia's powerful multiple-dispatch mechanism, to improve human readability, and to catch programmer errors. Describing Julia in the lingo of type systems, it is: expanded to interpolate the value of the argument into the final expression: julia> @sayhello("human") Hello, human We can view the quoted return expression using the function macroexpand (important note: macros): julia> ex = macroexpand(Main, :(@sayhello("human")) ) :(Main.println("Hello, ", "human")) julia> typeof(ex) Expr We can see that the "human" literal has been interpolated into the expression0 码力 | 1397 页 | 4.59 MB | 1 年前3
Julia 1.6.4 Documentationprimary purposes: to take advantage of Julia's powerful multiple-dispatch mechanism, to improve human readability, and to catch programmer errors. Describing Julia in the lingo of type systems, it is: expanded to interpolate the value of the argument into the final expression: julia> @sayhello("human") Hello, human We can view the quoted return expression using the function macroexpand (important note: macros): julia> ex = macroexpand(Main, :(@sayhello("human")) ) :(Main.println("Hello, ", "human")) julia> typeof(ex) Expr We can see that the "human" literal has been interpolated into the expression0 码力 | 1324 页 | 4.54 MB | 1 年前3
Julia 1.7.0 DEV Documentationprimary purposes: to take advantage of Julia's powerful multiple-dispatch mechanism, to improve human readability, and to catch programmer errors. Describing Julia in the lingo of type systems, it is: expanded to interpolate the value of the argument into the final expression: julia> @sayhello("human") Hello, human We can view the quoted return expression using the function macroexpand (important note: macros): julia> ex = macroexpand(Main, :(@sayhello("human")) ) :(Main.println("Hello, ", "human")) julia> typeof(ex) Expr We can see that the "human" literal has been interpolated into the expression0 码力 | 1399 页 | 4.59 MB | 1 年前3
Julia 1.5.2 Documentationprimary purposes: to take advantage of Julia's powerful multiple-dispatch mechanism, to improve human readability, and to catch programmer errors. Describing Julia in the lingo of type systems, it is: expanded to interpolate the value of the argument into the final expression: julia> @sayhello("human") Hello, human We can view the quoted return expression using the function macroexpand (important note: macros): julia> ex = macroexpand(Main, :(@sayhello("human")) ) :(Main.println("Hello, ", "human")) julia> typeof(ex) Expr We can see that the "human" literal has been interpolated into the expression0 码力 | 1335 页 | 4.41 MB | 1 年前3
Julia 1.6.0 DEV Documentationprimary purposes: to take advantage of Julia's powerful multiple-dispatch mechanism, to improve human readability, and to catch programmer errors. Describing Julia in the lingo of type systems, it is: expanded to interpolate the value of the argument into the final expression: julia> @sayhello("human") Hello, human We can view the quoted return expression using the function macroexpand (important note: macros): julia> ex = macroexpand(Main, :(@sayhello("human")) ) :(Main.println("Hello, ", "human")) julia> typeof(ex) Expr We can see that the "human" literal has been interpolated into the expression0 码力 | 1383 页 | 4.56 MB | 1 年前3
共 87 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













