1
0
Fork 0
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:
Mo8it 2022-04-08 22:42:12 +02:00
parent 63d1576f49
commit 49096484ae

View file

@ -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