πŸ“— -> 10/07/25: ECS140A-L4


Lecture Slide Link

🎀 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?)

Resources

  • Put useful links here

Connections

  • Link all related words