π -> 10/07/25: ECS140A-L4
π€ Vocab
β Unit and Larger Context
Small summary
βοΈ -> Scratch Notes
Continuing on with Go Syntax
Interfaces
An interface is an abstract type: it only defines a set of methods; nothing about the internal representation
Empty Interfaces
The interface{} type is the interface that has no methods
All types satisfy the empty interface
Type Assertions
Provides access to an interface valueβs underlying concrete value
- (similar to dynamic_cast in cpp)
s, ok := i.(string)
fmt.Println(s, ok)
This statement asserts that the interface value i holds the concrete type T and assigns the underlying T value to the variable t.
π§ͺ -> Refresh the Info
Did you generally find the overall content understandable or compelling or relevant or not, and why, or which aspects of the reading were most novel or challenging for you and which aspects were most familiar or straightforward?)
Did a specific aspect of the reading raise questions for you or relate to other ideas and findings youβve encountered, or are there other related issues you wish had been covered?)
π -> Links
Resources
- Put useful links here
Connections
- Link all related words