mirror of
https://gitlab.rlp.net/mobitar/julia_course.git
synced 2024-11-16 13:28:10 +00:00
Correct statement about type annotations
This commit is contained in:
parent
63d1576f49
commit
49096484ae
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
### A Pluto.jl notebook ###
|
||||
# v0.18.4
|
||||
# v0.19.0
|
||||
|
||||
using Markdown
|
||||
using InteractiveUtils
|
||||
|
@ -113,7 +113,7 @@ Julia as a functional language does not have classes like in object oriented lan
|
|||
|
||||
Using structs, you can define your own types. Structs use type composition. This means that you combine types into a new one.
|
||||
|
||||
In Julia, type annotations DO NOT lead to any performance boosts. Structs build an **exception**! If you are writing a struct, you have to use type annotations with **concrete types** (not abstract)!
|
||||
In general, type annotations DO NOT lead to any performance boosts in Julia. Structs build an **exception**! If you are writing a struct, you have to use type annotations with **concrete types** (not abstract)!
|
||||
"""
|
||||
|
||||
# ╔═╡ 3e3e324d-5650-4f81-87cf-fb0f6f55d9d1
|
||||
|
|
Loading…
Reference in a new issue